package org.pms.test;

import org.pms.dao.ProductDao;
import org.pms.dao.impl.ProductDaoImpl;
import org.pms.entity.Product;

/**
 * 测试修改
 *
 * @Author zqx
 * @Date 2023-12-28
 */
public class MainTest03 {
    public static void main(String[] args) {
        ProductDao productDao = new ProductDaoImpl();

        Product p = new Product();
        p.setId("10086");
        p.setName("华为 mate 60");
        p.setCount(100);
        p.setDesc("遥遥领先");
        p.setImage("default.png");
        p.setPrice(9999);

        int row = productDao.update(p) ;
        System.out.println(row);

    }
}
